let http = require('http');


http.createServer((req,res)=>{
    res.setHeader('content-type','text/html;charset=utf-8');
    if(req.url == '/favicon.ico'){
        return;
    }else if(req.url == '/'){
        res.end('ok');
    }else if(req.url == '/index'){
        res.end('首页');
    }else if(req.url == '/login'){
        res.end('登录界面');
    }else if(req.url == '/registe'){
        res.end('注册界面');
    }else if(req.url == '/product'){
        res.end('产品列表');
    }else if(req.url == '/order'){
        res.end('订单列表');
    }
  

}).listen(3000,'www.abc.com',()=>{
    console.log('ok');
});